-- GENERATED SPELL FOR [Cookie McWeaksauce] --


function spell0_17246(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(30221,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17246', 610, 1)
end

function Sorts_17246(pUnit, Event)
local choix_sorts_17246 = math.random(0, 0)
if choix_sorts_17246 == 0 then
pUnit:RegisterEvent('spell0_17246', 1, 1)
end
end

function mob17246_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17246', math.random(1500, 3000), 1)
end

function mob17246_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17246_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17246_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17246, 1, 'mob17246_Action')
RegisterUnitEvent(17246, 2, 'mob17246_Leave')
RegisterUnitEvent(17246, 3, 'mob17246_Kill')
RegisterUnitEvent(17246, 4, 'mob17246_Die')
